﻿using UnityEngine;
using System.Collections;

public class CoinScript : Poolable
{	
	public GameObject coinPickupSound;
	public void OnTriggerEnter (Collider col)
	{
		if (col.transform.tag == "Player") 
		{
			Instantiate(coinPickupSound);
			myPooler.AddToPool(gameObject, myStack);
		}
	}
}
